package com.beyondbit.demo.entity;

import com.beyondbit.web.infrastructure.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @Author: lvfahai
 * @Date: 2020/3/10 12:56
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class User extends BaseEntity<String> {
    /**
     * 用户账号
     */
    @NotBlank
    @Size(max = 50)
    private String userUid;
    @NotBlank
    @Size(max = 50)
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;
    @NotBlank
    @Size(max = 50)
    private String mobile;
    private String remark;
    private int sequence;
    private Date dateCreated;

    private String orgId;

    private String userId;

    private String userName;

    private String userFullName;

    private String userEmail;

    private String userEmailPublic;

    private String userPasswd;

    private String userType;

    private String userSex;

    private String userLocked;

    private String orgCode;

    private String orgName;


}
